﻿<Window x:Class="IM.Client.ChatMainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ChatMainWindow" Height="480" Width="600" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="150"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Image Source="Images/vedioChat.png" Width="48" Margin="10,0,0,0" Height="48" HorizontalAlignment="Left" ToolTip="视频聊天"></Image>
            <Image Source="Images/Voice_chat.png" Width="48" Height="48" Margin="10,0,0,0"  HorizontalAlignment="Left" ToolTip="语音聊天"></Image>
            <Image Source="Images/mail.png" Width="48" Height="48" Margin="10,0,0,0" HorizontalAlignment="Left" ToolTip="发送邮件"></Image>
            <Image Source="Images/file.png" Width="48" Height="48" Margin="10,0,0,0"  HorizontalAlignment="Left" ToolTip="传送文件"></Image>
            <Image Source="Images/message.png" Width="48" Height="48" Margin="10,0,0,0"  HorizontalAlignment="Left" ToolTip="发送手机短信"></Image>
            <Image Source="Images/applications.png" Width="48" Height="48" Margin="10,0,0,0"  HorizontalAlignment="Left" ToolTip="更多应用"></Image>
        </StackPanel>
        <Grid Grid.Row="1">
            <RichTextBox x:Name="rtbHistory" HorizontalAlignment="Center" BorderThickness="2" Background="Transparent" Foreground="White"   IsReadOnly="True" VerticalScrollBarVisibility="Auto" Margin="0,0,0,0" FontFamily="微软雅黑" FontSize="13.333">
                <FlowDocument/>
            </RichTextBox>
        </Grid>
        <Grid Grid.Row="2">
            <Button x:Name="btnHistoryInfo" HorizontalAlignment="Right" Margin="0,0,10,0" Width="70" Content="信息记录" RenderTransformOrigin="0.5,0.5" Click="btnSend_Click" FontFamily="微软雅黑" FontSize="12" Foreground="White" >
                <Button.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF2487A2" Offset="0"/>
                        <GradientStop Color="#FF0C4B76" Offset="1"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
        </Grid>
        <Grid Grid.Row="3">
            <RichTextBox x:Name="rtbSendMessage" HorizontalAlignment="Center" BorderThickness="2" Background="Transparent" Foreground="White"   IsReadOnly="True" VerticalScrollBarVisibility="Auto" Margin="0,0,0,0" FontFamily="微软雅黑" FontSize="13.333">
                <FlowDocument/>
            </RichTextBox>
        </Grid>
        <Grid Grid.Row="4">
            <Button x:Name="btnSend" HorizontalAlignment="Right" Margin="0,0,10,0" Width="70" Content="发送消息" RenderTransformOrigin="0.5,0.5" Click="btnSend_Click" FontFamily="微软雅黑" FontSize="12" Foreground="White" >
                <Button.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF2487A2" Offset="0"/>
                        <GradientStop Color="#FF0C4B76" Offset="1"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <Button x:Name="btnClose" HorizontalAlignment="Right" Margin="0,0,90,0" Width="70" Content="关闭" RenderTransformOrigin="0.5,0.5" Click="btnClose_Click" FontFamily="微软雅黑" FontSize="12" Foreground="White" >
                <Button.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF2487A2" Offset="0"/>
                        <GradientStop Color="#FF0C4B76" Offset="1"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
        </Grid>
    </Grid>
</Window>
